Component({
  data: {
    selected: 0,
    color: "#7A7E83",
    selectedColor: "#3cc51f",

    home:{ pagePath: "/pages/index/index",
    iconPath: "/image/icon_component.png",
    selectedIconPath: "/image/icon_component_HL.png",
    text: "首页"},
    person:{
      pagePath: "/pages/person/person",
      iconPath: "/image/icon_API.png",
      selectedIconPath: "/image/icon_API_HL.png",
      text: "人才库"
    },

    release: {
      "pagePath": "/pages/release/release",
      "iconPath": "/image/fabu.png",
      "selectedIconPath": "/image/cancellation.png",
      "text": ""
    },
    message:{
      pagePath: "/pages/message/message",
      iconPath: "/image/icon_API.png",
      selectedIconPath: "/image/icon_API_HL.png",
      text: "消息"
    },
    my:{
      pagePath: "/pages/my/my",
      iconPath: "/image/icon_API.png",
      selectedIconPath: "/image/icon_API_HL.png",
      text: "我的"
    }
   
  },
  attached() {
  },
  methods: {
    switchTab(e) {
    
        
       
   
        const data = e.currentTarget.dataset
        const url = data.path
        wx.switchTab({url})
        this.setData({
          selected: data.index
        })
      
     
    }
  }
})